Skip to content

refactor: Trigger UserFirstTimeLoggedIn instead of manually copying skeleton#1428

Draft
CarlSchwan wants to merge 1 commit intomainfrom
carl/copySkeleton
Draft

refactor: Trigger UserFirstTimeLoggedIn instead of manually copying skeleton#1428
CarlSchwan wants to merge 1 commit intomainfrom
carl/copySkeleton

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

@CarlSchwan CarlSchwan commented Apr 27, 2026

…keleton

Signed-off-by: Carl Schwan <carlschwan@kde.org>
private UserMapper $userMapper,
private IUserManager $userManager,
private IEventDispatcher $eventDispatcher,
private IConfig $config,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import is missing.
Also you may want to use ServerVersion?

Comment on lines +72 to +74
// Slighly incorrect, but this event trigger the creation of the file skeleton and
// the contact book entry.
$this->eventDispatcher->dispatchTyped(new UserFirstTimeLoggedInEvent($user));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is incorrect, we should not trigger this event unless the user logs in.
But with oidc if it’s created it means he’s currently logging in?

@julien-nc
Copy link
Copy Markdown
Member

Keep in mind this app supports NC 29 -> 34. I am not against having branches but considering the number of times we have to make fixes/releases for old NC versions, I would recommend not having one branch per server stable.

@CarlSchwan CarlSchwan marked this pull request as draft April 28, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants